]> dgit.raspbian.org Git - gnome-shell.git/commit
st/bin: Use child's align properties
authorFlorian Müllner <fmuellner@gnome.org>
Thu, 17 Oct 2019 21:27:27 +0000 (23:27 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Mon, 4 Nov 2019 20:23:32 +0000 (21:23 +0100)
commit2f39bd8ba4c666b14ff883152f2ae6c0ad156aae
tree7b4f7d852eb21908ea439c465779f580b3892e56
parentf0a51704733c1b85d51ae9f37c3595e6c60955b2
st/bin: Use child's align properties

By now, all containers and layout managers except StBin (and its
subclasses) use the generic ClutterActor expand/align properties
to control how their children are laid out.

This is particularly confusing as two or the properties StBin uses
for layout - x-align and y-align - shadow the generic ClutterActor
ones, but work very differently: They use a different enum and
determine how the bin lays out its child, instead of how the bin
is laid out by its parent.

Address this by deprecating the StBin properties and using the same
generic ClutterActor properties as everyone else.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/803
src/st/st-bin.c
src/st/st-button.c